home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 49
/
Aminet 49 (2002)(GTI - Schatztruhe)[!][Jun 2002].iso
/
Aminet
/
util
/
batch
/
MiniMen.lha
/
MiniMen
/
MultiDX.1
< prev
next >
Wrap
AmigaDOS Script File
|
2000-03-02
|
3KB
|
117 lines
.key fname
echo >env:arcmode none
search >nil: env:FPAK .LHA
if not warn
echo >env:arcmode .LHA
endif
search >nil: env:FPAK .LZX
if not warn
echo >env:arcmode .LZX
endif
search >nil: env:FPAK .ZIP
if not warn
echo >env:arcmode .ZIP
endif
search >nil: env:FPAK .LZH
if not warn
echo >env:arcmode .LZH
endif
search >nil: env:FPAK .ARJ
if not warn
echo >env:arcmode .ARJ
endif
if $arcmode not eq none
Requestfile >env:dest TITLE="Choose destination to UnPack" DRAWER "RAM:" DRAWERSONLY
if warn
echo "*N Operation canceled....!"
skip end
endif
if $arcmode eq .LHA
Lha x -V "<fname>" $dest
endif
if $arcmode eq .LZX
LZX x "<fname>" $dest
endif
if $arcmode eq .ZIP
UNZIP "<fname>" -d $dest
endif
if $arcmode eq .LZH
Lha x "<fname>" $dest
endif
if $arcmode eq .ARJ
unarj x "<fname>" $dest
endif
skip end
endif
search >nil: env:FPAK .DMP
if not warn
echo >env:arcmode .DMP
endif
search >nil: env:FPAK .DEX
if not warn
echo >env:arcmode .DEX
endif
search >nil: env:FPAK .DMS
if not warn
echo >env:arcmode .DMS
endif
search >nil: env:FPAK .ADF
if not warn
echo >env:arcmode .ADF
endif
search >nil: env:FPAK .ADZ
if not warn
echo >env:arcmode .ADZ
endif
search >nil: env:FPAK .PKD
if not warn
echo >env:arcmode .PKD
endif
if $arcmode eq none
echo "*N Archive extension not found or recognised...!"
else
MiniMen drives
if exists env:minmen
assign >nil: exists $MinMen:
if warn
if exists sys:storage/dosdrivers/$MinMen
mount >nil: sys:storage/dosdrivers/$MinMen
else
echo "*N Device driver not found....!"
skip end
endif
endif
if $arcmode eq .DMP
dimp WRITE "<fname>" $MinMen:
endif
if $arcmode eq .DEX
"<fname>" $MinMen:
endif
if $arcmode eq .DMS
if $MinMen EQ "PC0"
undms "<fname>" to $MinMen: PC VERIFY
else
undms "<fname>" to $MinMen: VERIFY
endif
endif
if $arcmode eq .ADF
TransADF DRIVE $MinMen: FILE "<fname>" WRITE NAME #? VERIFY FORMAT
endif
if $arcmode eq .ADZ
TransADF DRIVE $MinMen: FILE "<fname>" WRITE NAME #? VERIFY FORMAT
endif
if $arcmode eq .PKD
PackDev ETDF "<fname>" $MinMen:
endif
else
echo "*N Operation canceled...!"
endif
endif
lab end
delete >nil: env:MinMen env:FPAK env:arcmode env:dest